﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MyMath;

namespace TDDDemo
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void BasicRooterTest()
        {
            //Creater an instance to Rooter.
            Rooter rooter = new Rooter();

            //define test input and output value.
            double expectedResult = 2.0;
            double input = expectedResult * expectedResult;

            //Run Test Method under test
            double actualResult = rooter.SquarRoot(input);

            //Verify the Result.
            Assert.AreEqual(expectedResult, actualResult);

        }
    }
}
